﻿@{
    ViewBag.Title = "Discussion";
}
<div class="site_map">
    @Html.ActionLink("Home", "Index", "Home", new { }, new { }) / Account
</div>
<br />
<div>
    <div class="tabbable tabs-left">
        <ul class="nav nav-tabs">
            <li>
                @Html.ActionLink("Overview", "Index", "Account", new { userId = @ViewBag.User.UserId }, null)
            </li>
            @if (@ViewBag.User.RoleId != 1)
            {
                <li>
                    @Html.ActionLink("Subjects", "Subject", "Account", new { userId = @ViewBag.User.UserId }, null)
                </li>
            }
            <li class="active"><a data-toggle="tab" href="#discussion">Discussions</a> </li>
            @if (int.Parse(HttpContext.Current.User.Identity.Name) == @ViewBag.User.UserId)
            {
                <li>
                    @Html.ActionLink("Password", "ChangePassword", "Account", new { userId = @ViewBag.User.UserId }, new { })
                </li>
            }
        </ul>
        <div class="tab-content">
            <div id="discussion" class="tab-pane active">
                <h3 style="color: #A5CAE4; font-size: 16px; margin-bottom: 6px; border-bottom: 1px solid #D7EDFC; line-height: 1.28">
                    Discussions
                </h3>
                <div id="unobtrusive">
                    @Html.Partial("_ListDiscussions")
                </div>
            </div>
        </div>
    </div>
</div>